package xerr

// 成功返回
const OK uint32 = 200

/**(前3位代表业务,后三位代表具体功能)**/

// 全局错误码
const SERVER_COMMON_ERROR uint32 = 100001
const REUQEST_PARAM_ERROR uint32 = 100002
const TOKEN_EXPIRE_ERROR uint32 = 100003
const TOKEN_GENERATE_ERROR uint32 = 100004
const DB_ERROR uint32 = 100005
const DB_UPDATE_AFFECTED_ZERO_ERROR uint32 = 100006

// sys 模块
const CAPTCHA_ERROR uint32 = 200007
const USER_PASSWORD_ERROR = 200008
const REPEAT_NAME_ERROR = 200009

// sys_base 模块
const REPEAT_OSS_GET_BUCKET_ERROR = 300001
const REPEAT_OSS_PUT_BUCKET_ERROR = 300002
const EMAIL_CANNOT_BE_EMPTY_ERROR = 300003
const ALREADY_EXISTS_ERROR = 300004
